package com.heima.crm.pojos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 线索跟进表
 * </p>
 *
 * @author junjie
 * @since 2023-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_clue_follow")
public class TbClueFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 线索主键
     */
    @TableField("clue_id")
    private Long clueId;

    /**
     * 跟进记录
     */
    @TableField("follow_record")
    private String followRecord;

    /**
     * 意向等级
     */
    @TableField("level")
    private String level;

    /**
     * 意向学科
     */
    @TableField("subject_id")
    private Integer subjectId;

    /**
     * 下次跟进时间
     */
    @TableField("next_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate nextTime;

    @TableField("operator")
    private String operator;

    @TableField("operate_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;


    @TableField("fake_reason")
    private String fakeReason;

    @TableField("fake_remark")
    private String fakeRemark;


    /*
    sex,age,weixin,qq
     */


}
